package com.example.mansystem.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class AddRoleDto {
    @Pattern(regexp = "^[\u4e00-\u9fa5]{2,6}$",message = "角色格式不正确")
    private String rolename;
}
